﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HR/HRMasterPage.master" AutoEventWireup="true" CodeFile="hr-list.aspx.cs" Inherits="HR_hr_list" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="block">
    <div class="secondary-navigation">
                    <ul class="wat-cf">
                        <li class="active first"><a href="hr-create.aspx">Create new</a></li>
                    </ul>
                </div>
        <div class="content">
         <h2 class="title">
            User List</h2>
            <div class="inner">
                <br />
                <asp:GridView ID="gvHR" runat="server" AutoGenerateColumns="false" OnRowCommand="gvHR_RowCommand"
                    CssClass="table" AlternatingRowStyle-CssClass="even" 
                    RowStyle-CssClass="odd" GridLines="None">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="Country" HeaderText="Country" />
                        <asp:BoundField DataField="CreatedDate" HeaderText="Created Date" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <a href='<%# "hr-create.aspx?hrid=" +  DataBinder.Eval(Container.DataItem, "HRID") %>'>
                                    Edit</a> | <asp:LinkButton ID="lkDelete" runat="server" OnClientClick="return confirm('Confirm to delete this user account?');"
                                    CommandName="DeleteJob" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "HRID") %>'>Delete</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                
                
            </div>
        </div>
    </div>
</asp:Content>

